﻿@model IEnumerable<string>
@{
    Layout = null;
}

@Html.ActionLink("Home", "List", "Product")
@foreach (var _category in Model) {
    @Html.RouteLink(_category,
            new {
                controller = "Product",
                action = "List",
                category = _category,
                page = 1
            },
            new {
                @class = (_category == ViewBag.SelectedCategory) ? "selected" : null
            }
    )
}